import {httpInstance} from "@/api/index";
import {postConfig} from '@/lib/RequestBuilder'
import {getConfig} from "@/lib/RequestBuilder";

const user_prefix="/sys_user"

export const addUser = (param) =>{
    let config = postConfig(
            user_prefix+"/register",
                param);
    return httpInstance.request(config)
}

export const updateUser= (param) =>{
    let config = postConfig(
        user_prefix+"/update",
        param);
    return httpInstance.request(config)
}


export const listUser = (param) =>{
    let config = postConfig(
        user_prefix+"/list",
        param);
    return httpInstance.request(config)
}

export const deleteUser = (param) =>{
    let config = postConfig(
        user_prefix+"/delete",
        param);
    return httpInstance.request(config)
}

export const passwordReset = (param) =>{
    let config = postConfig(
        user_prefix+"/passwordReset",
            param
    )
    return httpInstance.request(config)
}